package cn.iocoder.yudao.module.picturebook.controller.admin.membership.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 会员信息新增/修改 Request VO")
@Data
public class MembershipSaveReqVO {

    @Schema(description = "会员记录ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11501")
    private Long id;

    @Schema(description = "关联用户", requiredMode = Schema.RequiredMode.REQUIRED, example = "25729")
    @NotNull(message = "关联用户不能为空")
    private Long userId;

    @Schema(description = "会员类型：1-普通，2-终身（老师专属）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "会员类型：1-普通，2-终身（老师专属）不能为空")
    private Integer memberType;

    @Schema(description = "生效时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "生效时间不能为空")
    private LocalDateTime startTime;

    @Schema(description = "过期时间（终身会员可空）")
    private LocalDateTime endTime;

    @Schema(description = "状态：1-有效，2-已过期", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态：1-有效，2-已过期不能为空")
    private Integer status;

}